package itcz.example.pattern.create_action.builder.demo1;

/**
 * @ClassName: Director
 * @Author: ITCZ
 * @Date: 2025-04-20
 * @Description: 指挥者类(也可以合并到Builder中)
 */
public class Director {
    private Builder builder;

    public Director(Builder builder) {
        this.builder = builder;
    }

    // 组装自行车的功能
    public Bike construct() {
        builder.buildFrame();
        builder.buildSeat();
        return builder.createBike();
    }
}
